// pages/my/mylist/mylist.js
const app=getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    title:'',
    titleshow:false,
    pageNo:1,
    pageSize:10,
    titletlist:'',
    selectmember:0,
    //是否有点击
    clickype:0,
    testlist:[],
    isnextpages:false,
    selectidentity:0,
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    console.log(options)
    // console.log('类型',options.type,'身份',options.identity,'选择类型',options.selectqora)
    
    this.setData({
      selectid:options.selectqora,
      querytype:options.type,
      identity:options.identity,
      bottomty:options.type
    })
    console.log(this.data.selectid)
    //身份选择式 --业务员--1，代理商--2， 岩板砖家--3，门店--4，瓦工--5，
    switch (options.identity) {
      case '1':
        if (options.type==1) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:false, 
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            // 人数类型小标题
            smalltitle:'以代理商数排名',
            identitytype:1,
            titletlist:[{
                index:0,
                test:'业务员',
                selectidentity:1,
              },{
                index:1,
                test:'代理商',
                selectidentity:2,
              } ],
              selectidentity:1,
            //人数类型-身份类型
            titletlisttpye:1,
          })
          this.getSalesmanListPage()
          // this.getGroupSupervisePage(2)

          
          
        }else if (options.type==2) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
          
            identitytype:1,
            titletlist:[{
                index:0,
                test:'门店数(个)',
                selectidentity:1,
              },{
                index:1,
                
                test:'监理数(个)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:2,
          })
          this.getAgentListPage(5)
          
        }else if (options.type==3) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              },{
                index:2,
                test:'瓦工数(个)',
                selectidentity:3,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:3,
          })
          this.getSuperviseListPage(1)
          
        }else if (options.type==4) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              },{
                index:2,
                test:'店员数(个)',
                selectidentity:3,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:4,
          })
          this.getShopownerListPage(1)
          
        }else if (options.type==5) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:5,
          })
          this.getBricklayListPage(1,1)
          
        }else{
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:true,
            // 是人数列表还是项目列表
            isprojeck:true,
            //title分割线
            islineshow:false,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'业务员',
                selectidentity:1,
              },{
                index:1,
                test:'代理商',
                selectidentity:2,
              }, {
                index:2,
                test:'门店',
                selectidentity:3,
              }, {
                index:3,
                test:'岩板砖家',
                selectidentity:4,
              }, {
                index:4,
                test:'瓦工',
                selectidentity:5,
              } ],
              selectidentity:1,
            //请求的类型
            qqtype:JSON.parse(options.qqtype),
  
            selectqora:options.selectqora
          })
          this.getSalesmanCollectPage(options.type)
        }
        

      break;
      case '2':
        if (options.type==2) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
          
            identitytype:1,
            titletlist:[{
                index:0,
                test:'门店数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'监理数(个)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:2,
          })
          this.getAgentListPage(5)
          
        }else if (options.type==3) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              },{
                index:2,
                test:'瓦工数(个)',
                selectidentity:3,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:3,
          })
          this.getSuperviseListPage(1)
          
        }else if (options.type==4) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              },{
                index:2,
                test:'店员数(个)',
                selectidentity:3,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:4,
          })
          this.getShopownerListPage(1)
          
        }else if (options.type==5) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:5,
          })
          this.getBricklayListPage(1,1)
          
        }else{
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:true,
            // 是人数列表还是项目列表
            isprojeck:true,
            //title分割线
            islineshow:false,
            identitytype:2,
            titletlist:[{
                index:0,
                test:'代理商'
              },{
                index:1,
                test:'门店'
              }, {
                index:2,
                test:'岩板砖家'
              }, {
                index:3,
                test:'瓦工'
              }, ],
            //请求的类型
            qqtype:JSON.parse(options.qqtype),
  
            selectqora:options.selectqora
          })
          this.getAgentCollectPage(options.type)
        }

        
      break;
      case '3':
        if (options.type==3) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              },{
                index:2,
                test:'瓦工数(个)',
                selectidentity:3,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:3,
          })
          this.getSuperviseListPage(1)
          
        }else if (options.type==4) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              },{
                index:2,
                test:'店员数(个)',
                selectidentity:3,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:4,
          })
          this.getShopownerListPage(1)
          
        }else if (options.type==5) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:5,
          })
          this.getBricklayListPage(1,1)
          
        }else if (options.type==6) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:6,
          })
          this.getBricklayListPage(1,2)
          
        }else if (options.type==7) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:7,
          })
          this.getBricklayListPage(1,3)
          
        }else if (options.type==2) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:false,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            singletype:'岩板砖家',
            identitytype:1,
            titletlist:[{
                index:0,
                test:'业务员'
              },{
                index:1,
                test:'代理商'
              },{
                index:2,
                test:'岩板砖家'
              } ],
            //请求的类型
          })
          this.getGroupBricklayPage(2)
          
        }else{
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:true,
            // 是人数列表还是项目列表
            isprojeck:true,
            //title分割线
            islineshow:false,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'门店'
              },{
                index:1,
                test:'岩板砖家'
              }, {
                index:2,
                test:'瓦工'
              }],
            //请求的类型
            qqtype:JSON.parse(options.qqtype),
  
            selectqora:options.selectqora
          })
          this.getSuperviseCollectPage(options.type)
        }

        
      break;
      case '4':

        if (options.type==5) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:5,
          })
          this.getBricklayListPage(1,1)
          
        }else if (options.type==6) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:6,
          })
          this.getBricklayListPage(1,2)
          
        }else if (options.type==7) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:7,
          })
          this.getBricklayListPage(1,3)
          
        } else{
          console.log('optionsss',JSON.parse(options.qqtype))
          console.log('optionsss',options)
          this.setData({
            
            title:options.title,
            //多个小列表显示
            titleshow:false,
            // 右上角金额单数切换按钮
            numorje:true,
            // 是人数列表还是项目列表
            isprojeck:true,
            //title分割线
            islineshow:false,
            identitytype:2,
            //请求的类型
            qqtype:JSON.parse(options.qqtype),

            selectqora:options.selectqora
          })
          this.getBricklayCollectPage(options.type)
          
        }

      break;
      case '5':
        if (options.type==8) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:8,
          })
          this.getDesignerListPage(1)
          
        }else if (options.type==9) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:9,
          })
          this.getAdviserListPage(1)
          
        }else{
        this.setData({
            
          title:options.title,
          //多个小列表显示
          titleshow:false,
          // 右上角金额单数切换按钮
          numorje:true,
          // 是人数列表还是项目列表
          isprojeck:true,
          //title分割线
          islineshow:false,
          //请求的类型
          qqtype:JSON.parse(options.qqtype),

          identitytype:2,

          selectqora:options.selectqora
        })
        this.getBricklayCollectPage(options.type)
      }
        
      break;
      case '6':
        
      break;
      case '7':
        
      break;
      case '8':
        
      break;
      case '9':
        
      break;
      case '10':
        if (options.type==8) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:8,
          })
          this.getDesignerListPage(1)
          
        }else if (options.type==9) {
          this.setData({

            title:options.title,
            //多个小列表显示
            titleshow:true,
            // 右上角金额单数切换按钮
            numorje:false,
            // 是人数列表还是项目列表
            isprojeck:false,
            //title分割线
            islineshow:true,
            identitytype:1,
            titletlist:[{
                index:0,
                test:'完工项目数(个)',
                selectidentity:1,
              },{
                index:1,
                test:'完工项目金额(元)',
                selectidentity:2,
              } ],
              selectidentity:1,
            //请求的类型
            //人数类型-身份类型
            titletlisttpye:9,
          })
          this.getAdviserListPage(1)
          
        }else{
        this.setData({
            
          title:options.title,
          //多个小列表显示
          titleshow:false,
          // 右上角金额单数切换按钮
          numorje:true,
          // 是人数列表还是项目列表
          isprojeck:true,
          //title分割线
          islineshow:false,
          //请求的类型
          qqtype:JSON.parse(options.qqtype),

          identitytype:2,

          selectqora:options.selectqora
        })
        this.getBricklayCollectPage(options.type)
      }
        break;
    
      default:
        break;
    }

    this.myComponent = this.selectComponent('#mydatalist')
         

  },
  onMyEvent(e){
    this.setData({
      testlist:[],
      pageNo:1,
      selectid:e.detail.selectid,
      selectmember:e.detail.selectmember,
      bottomty:this.data.qqtype[e.detail.selectid]
    })
    
    console.log(e)
    switch (this.data.identity) {
      case '1':
        if (e.detail.selectmember==0) {
          this.getSalesmanCollectPage(this.data.qqtype[e.detail.selectid])
        }else if(e.detail.selectmember==1){
          this.getAgentCollectPage(this.data.qqtype[e.detail.selectid])
        }else if(e.detail.selectmember==2){
          this.getShopownerCollectPage(this.data.qqtype[e.detail.selectid])
        }else if(e.detail.selectmember==3){
          this.getSuperviseCollectPage(this.data.qqtype[e.detail.selectid])
        }else if(e.detail.selectmember==4){
          this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
        }
      break;
      case '2':
        if (e.detail.selectmember==0) {
          this.getAgentCollectPage(this.data.qqtype[e.detail.selectid])
        }else if(e.detail.selectmember==1){
          
          this.getShopownerCollectPage(this.data.qqtype[e.detail.selectid])
        }else if(e.detail.selectmember==2){
          this.getSuperviseCollectPage(this.data.qqtype[e.detail.selectid])
        }else if(e.detail.selectmember==3){
          console.log('sdfs')
          this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
        }
      break;
      case '3':
        if (e.detail.selectmember==0) {
          this.getShopownerCollectPage(this.data.qqtype[e.detail.selectid])
        }else if(e.detail.selectmember==1){
          this.getSuperviseCollectPage(this.data.qqtype[e.detail.selectid])
        }else if(e.detail.selectmember==2){
          this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
        }
        
      break;
      case '4':
        this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
      break;
      case '5':
        this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
        
      break;
      case '6':
        
      break;
      case '7':
        
      break;
      case '8':
        
      break;
      case '9':
        
      break;
    
      default:
        break;
    }
  },
  //点击身份
  memberfun(e){
    let that=this
    console.log('点击类型',e)

    
    this.setData({
      pageNo:1,
      selectmember:e.detail.selectmember,
      selectid:e.detail.selectid,
      clickype:e.detail.clickype,
      bottomty:this.data.qqtype[e.detail.selectid]
    })
    // console.log('点击了我',this.data.qqtype[e.detail.selectid])
    setTimeout(function(){
      that.setData({
        testlist:[]
      })
      switch (that.data.identity) {
        case '1':
          if (e.detail.selectmember==0) {
            that.getSalesmanCollectPage(that.data.qqtype[e.detail.selectid])
          }else if(e.detail.selectmember==1){
            that.getAgentCollectPage(that.data.qqtype[e.detail.selectid])
          }else if(e.detail.selectmember==2){
            that.getShopownerCollectPage(that.data.qqtype[e.detail.selectid])
          }else if(e.detail.selectmember==3){
            console.log('sdfs')
            that.getSuperviseCollectPage(that.data.qqtype[e.detail.selectid])
            
          }else if(e.detail.selectmember==4){
            that.getBricklayCollectPage(that.data.qqtype[e.detail.selectid])
          }
        break;
        case '2':
          if (e.detail.selectmember==0) {
            that.getAgentCollectPage(that.data.qqtype[e.detail.selectid])
          }else if(e.detail.selectmember==1){
            that.getShopownerCollectPage(that.data.qqtype[e.detail.selectid])
            
          }else if(e.detail.selectmember==2){
            that.getSuperviseCollectPage(that.data.qqtype[e.detail.selectid])
          }else if(e.detail.selectmember==3){
            console.log('sdfs')
            that.getBricklayCollectPage(that.data.qqtype[e.detail.selectid])
          }
          
        break;
        case '3':
          if (e.detail.selectmember==0) {
            
            that.getShopownerCollectPage(that.data.qqtype[e.detail.selectid])
          }else if(e.detail.selectmember==1){
            that.getSuperviseCollectPage(that.data.qqtype[e.detail.selectid])
          }else if(e.detail.selectmember==2){
            that.getBricklayCollectPage(that.data.qqtype[e.detail.selectid])
          }
          
        break;
        
      
        default:
          break;
      }
    },500)
    
  },
  memberfun2(e){
    console.log('点击类型',e)
    let that=this
    this.setData({
      pageNo:1,
      selectmember:e.detail.selectmember,
      clickype:e.detail.clickype
    })
    setTimeout(function(){
      that.setData({
        testlist:[]
      })
    switch (that.data.identity) {
      case '1':
        if (that.data.querytype==1) {
          
       
        if (e.detail.selectmember==0) {
          that.getGroupSupervisePage(2)
        }else if(e.detail.selectmember==1){
          that.getGroupSupervisePage(3)
        }else if(e.detail.selectmember==2){
          that.getGroupSupervisePage(4)
        }
      }else if (that.data.querytype==2) {
          
       
          if (e.detail.selectmember==0) {
            that.getAgentListPage(5)
          }else if(e.detail.selectmember==1){
            that.getAgentListPage(4)
          }
          
        }else if (that.data.querytype==3) {
          
       
          if (e.detail.selectmember==0) {
            that.getSuperviseListPage(1)
          }else if(e.detail.selectmember==1){
            that.getSuperviseListPage(2)
          }else if(e.detail.selectmember==2){
            that.getSuperviseListPage(3)
          }
        }else if (that.data.querytype==4) {
          
       
          if (e.detail.selectmember==0) {
            that.getShopownerListPage(1)
          }else if(e.detail.selectmember==1){
            that.getShopownerListPage(2)
          }else if(e.detail.selectmember==2){
            that.getShopownerListPage(3)
          }
        }else if (that.data.querytype==5) {
          
       
          if (e.detail.selectmember==0) {
            that.getBricklayListPage(1,1)
          }else if(e.detail.selectmember==1){
            that.getBricklayListPage(2,1)
          }else if(e.detail.selectmember==2){
            that.getBricklayListPage(3,1)
          }
        }
      
      break;
      case '2':
        if (that.data.querytype==2) {
          
       
          if (e.detail.selectmember==0) {
            that.getAgentListPage(5)
          }else if(e.detail.selectmember==1){
            that.getAgentListPage(4)
          }
          
        }else if (that.data.querytype==3) {
          
       
          if (e.detail.selectmember==0) {
            that.getSuperviseListPage(1)
          }else if(e.detail.selectmember==1){
            that.getSuperviseListPage(2)
          }else if(e.detail.selectmember==2){
            that.getSuperviseListPage(3)
          }
        }else if (that.data.querytype==4) {
          
       
          if (e.detail.selectmember==0) {
            that.getShopownerListPage(1)
          }else if(e.detail.selectmember==1){
            that.getShopownerListPage(2)
          }else if(e.detail.selectmember==2){
            that.getShopownerListPage(3)
          }
        }else if (that.data.querytype==5) {
          
       
          if (e.detail.selectmember==0) {
            that.getBricklayListPage(1,1)
          }else if(e.detail.selectmember==1){
            that.getBricklayListPage(2,1)
          }else if(e.detail.selectmember==2){
            that.getBricklayListPage(3,1)
          }
        }
          
        
      break;
      case '3':
        if (that.data.querytype==2) {
          
       
          if (e.detail.selectmember==0) {
            that.getAgentListPage(5)
          }else if(e.detail.selectmember==1){
            that.getAgentListPage(4)
          }
          
        }else if (that.data.querytype==3) {
          
       
          if (e.detail.selectmember==0) {
            that.getSuperviseListPage(1)
          }else if(e.detail.selectmember==1){
            that.getSuperviseListPage(2)
          }else if(e.detail.selectmember==2){
            that.getSuperviseListPage(3)
          }
        }else if (that.data.querytype==4) {
          
       
          if (e.detail.selectmember==0) {
            that.getShopownerListPage(1)
          }else if(e.detail.selectmember==1){
            that.getShopownerListPage(2)
          }else if(e.detail.selectmember==2){
            that.getShopownerListPage(3)
          }
        }else if (that.data.querytype==5) {
          
       
          if (e.detail.selectmember==0) {
            that.getBricklayListPage(1,1)
          }else if(e.detail.selectmember==1){
            that.getBricklayListPage(2,1)
          }else if(e.detail.selectmember==2){
            that.getBricklayListPage(3,1)
          }
        }else if (that.data.querytype==6) {
          
       
          if (e.detail.selectmember==0) {
            that.getBricklayListPage(1,2)
          }else if(e.detail.selectmember==1){
            that.getBricklayListPage(2,2)
          }
        }else if (that.data.querytype==7) {
          
       
          if (e.detail.selectmember==0) {
            that.getBricklayListPage(1,3)
          }else if(e.detail.selectmember==1){
            that.getBricklayListPage(2,3)
          }
        }
        
      break;
      case '4':
        if (that.data.querytype==5) {
          
       
          if (e.detail.selectmember==0) {
            that.getBricklayListPage(1,1)
          }else if(e.detail.selectmember==1){
            that.getBricklayListPage(2,1)
          }
        }else if (that.data.querytype==6) {
          
       
          if (e.detail.selectmember==0) {
            that.getBricklayListPage(1,2)
          }else if(e.detail.selectmember==1){
            that.getBricklayListPage(2,2)
          }
        }else if (that.data.querytype==7) {
          
       
          if (e.detail.selectmember==0) {
            that.getBricklayListPage(1,3)
          }else if(e.detail.selectmember==1){
            that.getBricklayListPage(2,3)
          }
        }
        
      break;
      case '5':
        if (that.data.querytype==8) {
          
       
          if (e.detail.selectmember==0) {
            that.getDesignerListPage(1)
          }else if(e.detail.selectmember==1){
            that.getDesignerListPage(2)
          }
        }else if (that.data.querytype==9) {
          
       
          if (e.detail.selectmember==0) {
            that.getAdviserListPage(1)
          }else if(e.detail.selectmember==1){
            that.getAdviserListPage(2)
          }
        }
        
      break;
      case '10':
        if (that.data.querytype==8) {
          
       
          if (e.detail.selectmember==0) {
            that.getAdviserListPage(1)
          }else if(e.detail.selectmember==1){
            that.getAdviserListPage(2)
          }
        }
        
      break;
    
      default:
        break;
    }
  },300)

  },
  // 个人页面业务员列表
  getSalesmanListPage(){
    wx.showLoading({
      title: '加载中...', //提示的内容
      mask: true //显示透明蒙层 防止触摸穿透
    })
    let that=this
    wx.request({
      url:app.globalData.Interfaceurl+'getSalesmanListPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        // selectField:type,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res,2222)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          that.setData({
            testonenum:res.data.salesmanNum,
            testtwonum:res.data.otherNum
          })
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize),
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list,
          })
          
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list),
            
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  // 个人页面-代理商列表
  getAgentListPage(type){
   
    wx.showLoading({
      title: '加载中...', //提示的内容
      mask: true //显示透明蒙层 防止触摸穿透
    })
    let that=this
    wx.request({
      url:app.globalData.Interfaceurl+'getAgentListPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectIdentity:type,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res,2222)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          that.setData({
            testonenum:res.data.agentNum,
            testtwonum:res.data.otherNum
          })
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize),
          
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list,
          })
          
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list),
            
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  // 个人页面-监理列表（分页）
  getSuperviseListPage(type){
   
    wx.showLoading({
      title: '加载中...', //提示的内容
      mask: true //显示透明蒙层 防止触摸穿透
    })
    let that=this
    wx.request({
      url:app.globalData.Interfaceurl+'getSuperviseListPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectType:type,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res,2222)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          that.setData({
            testonenum:res.data.superviseNum,
            testtwonum:res.data.otherNum
          })
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize),
          
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list,
          })
          
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list),
            
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  // 个人页面-门店列表（分页）
  getShopownerListPage(type){
   
    wx.showLoading({
      title: '加载中...', //提示的内容
      mask: true //显示透明蒙层 防止触摸穿透
    })
    let that=this
    wx.request({
      url:app.globalData.Interfaceurl+'getShopownerListPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectType:type,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res,2222)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          that.setData({
            testonenum:res.data.shopownerNum,
            testtwonum:res.data.otherNum
          })
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize),
          
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list,
          })
          
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list),
            
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  // 个人页面-工人列表（分页）
  getBricklayListPage(type,worktype){
   
    wx.showLoading({
      title: '加载中...', //提示的内容
      mask: true //显示透明蒙层 防止触摸穿透
    })
    let that=this
    wx.request({
      url:app.globalData.Interfaceurl+'getBricklayListPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectType:type,
        workType:worktype,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res,2222)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          that.setData({
            testonenum:res.data.bricklayNum,
            testtwonum:res.data.otherNum
          })
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize),
          
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list,
          })
          
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list),
            
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  // 个人页面-设计师列表（分页）
  getDesignerListPage(type,worktype){
    wx.showLoading({
      title: '加载中...', //提示的内容
      mask: true //显示透明蒙层 防止触摸穿透
    })
    let that=this
    wx.request({
      url:app.globalData.Interfaceurl+'getDesignerListPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectType:type,
        // workType:worktype,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res,2222)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          that.setData({
            testonenum:res.data.designerNum,
            testtwonum:res.data.otherNum
          })
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize),
          
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list,
          })
          
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list),
            
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  // 个人页面-家居顾问列表（分页）
  getAdviserListPage(type,worktype){
    wx.showLoading({
      title: '加载中...', //提示的内容
      mask: true //显示透明蒙层 防止触摸穿透
    })
    let that=this
    wx.request({
      url:app.globalData.Interfaceurl+'getAdviserListPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectType:type,
        // workType:worktype,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          that.setData({
            testonenum:res.data.adviserNum,
            testtwonum:res.data.otherNum
          })
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize),
          
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list,
          })
          
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list),
            
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  //瓦工
  getBricklayCollectPage(type){
    wx.showLoading({
      title: '加载中...', //提示的内容
      mask: true //显示透明蒙层 防止触摸穿透
    })
    let that=this
    wx.request({
      url:app.globalData.Interfaceurl+'getBricklayCollectPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectField:type,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res,2222)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          if (res.data.num) {
            that.setData({
              testonenum:res.data.num
            })
          }
          if (res.data.amount) {
            that.setData({
              testtwonum:res.data.amount
            })
          }
          
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize)
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list
          })
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list)
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
   //店长
   getShopownerCollectPage(type){
    let that=this
    wx.showLoading({
      title: '加载中',
      mask: true //显示透明蒙层 防止触摸穿透
    })
    wx.request({
      url:app.globalData.Interfaceurl+'getShopownerCollectPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectField:type,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          if (res.data.num) {
            that.setData({
              testonenum:res.data.num
            })
          }
          if (res.data.amount) {
            that.setData({
              testtwonum:res.data.amount
            })
          }
          
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize)
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list
          })
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list)
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  // 岩板砖家
  getSuperviseCollectPage(type){
    let that=this
    wx.showLoading({
      title: '加载中',
      mask: true //显示透明蒙层 防止触摸穿透
    })
    wx.request({
      url:app.globalData.Interfaceurl+'getSuperviseCollectPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectField:type,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          if (res.data.num) {
            that.setData({
              testonenum:res.data.num
            })
          }
          if (res.data.amount) {
            that.setData({
              testtwonum:res.data.amount
            })
          }
          
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize)
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list
          })
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list)
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  // 代理商
  getAgentCollectPage(type){
    let that=this
    wx.showLoading({
      title: '加载中',
      mask: true //显示透明蒙层 防止触摸穿透
    })
    wx.request({
      url:app.globalData.Interfaceurl+'getAgentCollectPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectField:type,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          if (res.data.num) {
            that.setData({
              testonenum:res.data.num
            })
          }
          if (res.data.amount) {
            that.setData({
              testtwonum:res.data.amount
            })
          }
          
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize)
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list
          })
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list)
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  // 业务员
  getSalesmanCollectPage(type){
    wx.showLoading({
      title: '加载中',
      mask: true //显示透明蒙层 防止触摸穿透
    })
    let that=this
    wx.request({
      url:app.globalData.Interfaceurl+'getSalesmanCollectPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectField:type,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          if (res.data.num) {
            that.setData({
              testonenum:res.data.num
            })
          }
          if (res.data.amount) {
            that.setData({
              testtwonum:res.data.amount
            })
          }
          
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize)
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list
          })
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list)
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  getVerifyBricklayPage(){
    let that=this
    wx.showLoading({
      title: '加载中',
      mask: true //显示透明蒙层 防止触摸穿透
    })
    wx.request({
      url:app.globalData.Interfaceurl+'getVerifyBricklayPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res)
        wx.hideLoading()
        if (that.data.pageNo==1) {
          if (res.data.num) {
            that.setData({
              testonenum:res.data.num
            })
          }
          if (res.data.amount) {
            that.setData({
              testtwonum:res.data.amount
            })
          }
          
        }
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize)
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        console.log(res)
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list
          })
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list)
          })
        }
        that.myComponent.heidshow()

        console.log(that.data.testlist)

      }
    })
  },
  //业务员/代理商店长数-钻入分页、
  getGroupShopownerPage(selectIdentity){
    let that=this
    wx.showLoading({
      title: '加载中',
      mask: true //显示透明蒙层 防止触摸穿透
    })
    wx.request({
      url:app.globalData.Interfaceurl+'getGroupShopownerPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectIdentity:selectIdentity,
        pageSize:that.data.pageSize,
        pageNo:that.data.pageNo,

      },
      success(res){
        console.log(res)
        wx.hideLoading()
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize)
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        console.log(res)
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list
          })
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list)
          })
        }
        
        
        

        
        that.myComponent.heidshow()
      }
    })
  },
//业务员/代理商监理数-钻入
getGroupSupervisePage(selectIdentity){
    let that=this
    wx.showLoading({
      title: '加载中',
      mask: true //显示透明蒙层 防止触摸穿透
    })
    wx.request({
      url:app.globalData.Interfaceurl+'getGroupSupervisePage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectIdentity:selectIdentity,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res)
        wx.hideLoading()
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize)
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list
          })
        }else{
          // let c=
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list)
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  //业务员/代理商/岩板砖家瓦工数-钻入（分页）
  getGroupBricklayPage(selectIdentity){
    let that=this
    wx.showLoading({
      title: '加载中',
      mask: true //显示透明蒙层 防止触摸穿透
    })
    wx.request({
      url:app.globalData.Interfaceurl+'getGroupBricklayPage',
      method:'POST',
      header: {
      "content-type": "application/x-www-form-urlencoded;charset=UTF-8"
      },
      data:{
        userId:app.globalData.userId,
        selectIdentity:selectIdentity,
        pageNo:that.data.pageNo,
        pageSize:that.data.pageSize,
      },
      success(res){
        console.log(res)
        wx.hideLoading()
        that.setData({
          pagetotal:Math.ceil(res.data.page.count/that.data.pageSize)
        })
        that.data.pageNo<that.data.pagetotal?that.setData({isnextpages:true}):that.setData({isnextpages:false})
        console.log(res)
        if (that.data.testlist==[]) {
          that.setData({
            testlist:res.data.page.list
          })
        }else{
          that.setData({
            testlist:that.data.testlist.concat(res.data.page.list)
          })
        }
        that.myComponent.heidshow()
      }
    })
  },
  
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {
  },
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {
    let that=this
    console.log('that.data.clickype',that.data.selectmember)
    console.log('that.data.clickype',that.data.clickype)
    
    if (this.data.pageNo<this.data.pagetotal) {
      this.setData({
        pageNo:this.data.pageNo+1
      })
      console.log('this.data.pageNo',this.data.pageNo)

      if (that.data.isprojeck==true) {
        switch (that.data.identity) {
          case '1':
            if (that.data.selectmember==0) {
              that.getSalesmanCollectPage(that.data.qqtype[that.data.selectid])
            }else if(that.data.selectmember==1){
              that.getAgentCollectPage(that.data.qqtype[that.data.selectid])
            }else if(that.data.selectmember==2){
              that.getShopownerCollectPage(that.data.qqtype[that.data.selectid])
            }else if(that.data.selectmember==3){
              that.getSuperviseCollectPage(that.data.qqtype[that.data.selectid])
            }else if(that.data.selectmember==4){
              that.getBricklayCollectPage(that.data.qqtype[that.data.selectid])
            }
          break;
          case '2':
            if (that.data.selectmember==0) {
              that.getAgentCollectPage(that.data.qqtype[that.data.selectid])
            }else if(that.data.selectmember==1){
              that.getShopownerCollectPage(that.data.qqtype[that.data.selectid])
            }else if(that.data.selectmember==2){
              that.getSuperviseCollectPage(that.data.qqtype[that.data.selectid])
            }else if(that.data.selectmember==3){
              that.getBricklayCollectPage(that.data.qqtype[that.data.selectid])
            }
            
          break;
          case '3':
            if (that.data.selectmember==0) {
              that.getShopownerCollectPage(that.data.qqtype[that.data.selectid])
            }else if(that.data.selectmember==1){
              that.getSuperviseCollectPage(that.data.qqtype[that.data.selectid])
            }else if(that.data.selectmember==2){
              that.getBricklayCollectPage(that.data.qqtype[that.data.selectid])
            }
            
          break;
        
          default:
            break;
        }
      }else{
        console.log('人数类型')
        switch (that.data.identity) {
          case '1':
            if (that.data.querytype==1) {
              this.getSalesmanListPage()
            }else if (that.data.querytype==2) {
              if (that.data.selectmember==0) {
                this.getAgentListPage(5)
              }else if (that.data.selectmember==1) {
                this.getAgentListPage(4)
              }
            }else if (that.data.querytype==3) {
              if (that.data.selectmember==0) {
                this.getSuperviseListPage(1)
              }else if (that.data.selectmember==1) {
                this.getSuperviseListPage(2)
              }else if (that.data.selectmember==2) {
                this.getSuperviseListPage(3)
              }
            }else if (that.data.querytype==4) {
              if (that.data.selectmember==0) {
                this.getShopownerListPage(1)
              }else if (that.data.selectmember==1) {
                this.getShopownerListPage(2)
              }else if (that.data.selectmember==2) {
                this.getShopownerListPage(3)
              }
            }else if (that.data.querytype==5) {
              if (that.data.selectmember==0) {
                this.getBricklayListPage(1,1)
              }else if (that.data.selectmember==1) {
                this.getBricklayListPage(1,2)
              }else if (that.data.selectmember==2) {
                this.getBricklayListPage(1,3)
              }
            }
          break;
          case '2':
            // if (that.data.querytype==1) {
            //   this.getSalesmanListPage()
            // }else 
            if (that.data.querytype==2) {
              if (that.data.selectmember==0) {
                this.getAgentListPage(5)
              }else if (that.data.selectmember==1) {
                this.getAgentListPage(4)
              }
            }else if (that.data.querytype==3) {
              if (that.data.selectmember==0) {
                this.getSuperviseListPage(1)
              }else if (that.data.selectmember==1) {
                this.getSuperviseListPage(2)
              }else if (that.data.selectmember==2) {
                this.getSuperviseListPage(3)
              }
            }else if (that.data.querytype==4) {
              if (that.data.selectmember==0) {
                this.getShopownerListPage(1)
              }else if (that.data.selectmember==1) {
                this.getShopownerListPage(2)
              }else if (that.data.selectmember==2) {
                this.getShopownerListPage(3)
              }
            }else if (that.data.querytype==5) {
              if (that.data.selectmember==0) {
                this.getBricklayListPage(1,1)
              }else if (that.data.selectmember==1) {
                this.getBricklayListPage(2,1)
              }else if (that.data.selectmember==2) {
                this.getBricklayListPage(3,1)
              }
            }
          break;
          case '3':
            if (that.data.querytype==3) {
              if (that.data.selectmember==0) {
                this.getSuperviseListPage(1)
              }else if (that.data.selectmember==1) {
                this.getSuperviseListPage(2)
              }else if (that.data.selectmember==2) {
                this.getSuperviseListPage(3)
              }
            }else if (that.data.querytype==4) {
              if (that.data.selectmember==0) {
                this.getShopownerListPage(1)
              }else if (that.data.selectmember==1) {
                this.getShopownerListPage(2)
              }else if (that.data.selectmember==2) {
                this.getShopownerListPage(3)
              }
            }else if (that.data.querytype==5) {
              if (that.data.selectmember==0) {
                this.getBricklayListPage(1,1)
              }else if (that.data.selectmember==1) {
                this.getBricklayListPage(2,1)
              }else if (that.data.selectmember==2) {
                this.getBricklayListPage(3,1)
              }
            }else if(that.data.querytype==6){
              if (that.data.selectmember==0) {
                this.getBricklayListPage(1,2)
              }else if (that.data.selectmember==1) {
                this.getBricklayListPage(2,2)
              }else if (that.data.selectmember==2) {
                this.getBricklayListPage(3,2)
              }
            }else if(that.data.querytype==7){
              if (that.data.selectmember==0) {
                this.getBricklayListPage(1,3)
              }else if (that.data.selectmember==1) {
                this.getBricklayListPage(2,3)
              }else if (that.data.selectmember==2) {
                this.getBricklayListPage(3,3)
              }
            }
            
          break;
          case '4':
            if (that.data.querytype==5) {
              if (that.data.selectmember==0) {
                this.getBricklayListPage(1,1)
              }else if (that.data.selectmember==1) {
                this.getBricklayListPage(2,1)
              }else if (that.data.selectmember==2) {
                this.getBricklayListPage(3,1)
              }
            }else if(that.data.querytype==6){
              if (that.data.selectmember==0) {
                this.getBricklayListPage(1,2)
              }else if (that.data.selectmember==1) {
                this.getBricklayListPage(2,2)
              }else if (that.data.selectmember==2) {
                this.getBricklayListPage(3,2)
              }
            }else if(that.data.querytype==7){
              if (that.data.selectmember==0) {
                this.getBricklayListPage(1,3)
              }else if (that.data.selectmember==1) {
                this.getBricklayListPage(2,3)
              }else if (that.data.selectmember==2) {
                this.getBricklayListPage(3,3)
              }
            }
            
          break;
          case '5':
            if(that.data.querytype==8){
              if (that.data.selectmember==0) {
                this.getDesignerListPage(1)
              }else if (that.data.selectmember==1) {
                this.getDesignerListPage(2)
              }else if (that.data.selectmember==2) {
                this.getDesignerListPage(3)
              }
            }else if(that.data.querytype==9){
              if (that.data.selectmember==0) {
                this.getAdviserListPage(1)
              }else if (that.data.selectmember==1) {
                this.getAdviserListPage(2)
              }else if (that.data.selectmember==2) {
                this.getAdviserListPage(3)
              }
            }
          break;
          case '6':
            
          break;
          case '7':
            
          break;
          case '8':
            
          break;
          // this.getDesignerListPage(1)
          case '10':
            if(that.data.querytype==8){
              if (that.data.selectmember==0) {
                this.getDesignerListPage(1)
              }else if (that.data.selectmember==1) {
                this.getDesignerListPage(2)
              }else if (that.data.selectmember==2) {
                this.getDesignerListPage(3)
              }
            }
            
          break;
        
          default:
            break;
        }
      }



      // // 数量类型的
      // //selectmember身份类型
      // if (that.data.clickype==1) {
      //     switch (that.data.identity) {
      //       case '1':
      //         if (that.data.querytype==1) {
                
             
      //         if (that.data.selectmember==0) {
      //           that.getGroupBricklayPage(2)
      //         }else if(that.data.selectmember==1){
      //           that.getGroupBricklayPage(3)
      //         }else if(that.data.selectmember==2){
      //           that.getGroupBricklayPage(4)
      //         }
      //       }else if (that.data.querytype==2) {
                
             
      //           if (that.data.selectmember==0) {
      //             that.getGroupBricklayPage(2)
      //           }else if(that.data.selectmember==1){
      //             that.getGroupBricklayPage(3)
      //           }else if(that.data.selectmember==2){
      //             that.getGroupBricklayPage(4)
      //           }
      //         }else if (that.data.querytype==3) {
                
             
      //           if (that.data.selectmember==0) {
      //             that.getGroupShopownerPage(2)
      //           }else if(that.data.selectmember==1){
      //             that.getGroupShopownerPage(3)
      //           }
      //         }
            
      //       break;
      //       case '2':
      //         if (that.data.querytype==1) {
                
             
      //           if (that.data.selectmember==0) {
      //             that.getGroupBricklayPage(3)
      //           }else if(that.data.selectmember==1){
      //             that.getGroupBricklayPage(4)
      //           }
      //         }else if (that.data.querytype==2) {
                  
               
      //             if (that.data.selectmember==0) {
      //               that.getGroupBricklayPage(3)
      //             }else if(that.data.selectmember==1){
      //               that.getGroupBricklayPage(4)
      //             }
      //           }
                
              
      //       break;
      //       case '3':
              
      //       break;
          
      //       default:
      //         break;
      //     }
      // }
      // //项目类型的
      // //selectmember为选择的省份
      // //selectid ==0 为选择的金额，selectid ==1为选择的单数
      // else if(that.data.clickype==2){
        
      //     switch (that.data.identity) {
      //       case '1':
      //         if (that.data.selectmember==0) {
      //           that.getSalesmanCollectPage(that.data.qqtype[that.data.selectid])
      //         }else if(that.data.selectmember==1){
      //           that.getAgentCollectPage(that.data.qqtype[that.data.selectid])
      //         }else if(that.data.selectmember==2){
      //           that.getSuperviseCollectPage(that.data.qqtype[that.data.selectid])
      //         }else if(that.data.selectmember==3){
      //           console.log('sdfs')
      //           that.getShopownerCollectPage(that.data.qqtype[that.data.selectid])
      //         }else if(that.data.selectmember==4){
      //           that.getBricklayCollectPage(that.data.qqtype[that.data.selectid])
      //         }
      //       break;
      //       case '2':
      //         if (that.data.selectmember==0) {
      //           that.getAgentCollectPage(that.data.qqtype[that.data.selectid])
      //         }else if(that.data.selectmember==1){
      //           that.getSuperviseCollectPage(that.data.qqtype[that.data.selectid])
      //         }else if(that.data.selectmember==2){
      //           that.getShopownerCollectPage(that.data.qqtype[that.data.selectid])
      //         }else if(that.data.selectmember==3){
      //           console.log('sdfs')
      //           that.getBricklayCollectPage(that.data.qqtype[that.data.selectid])
      //         }
              
      //       break;
      //       case '3':
      //         if (that.data.selectmember==0) {
      //           that.getSuperviseCollectPage(that.data.qqtype[that.data.selectid])
      //         }else if(that.data.selectmember==1){
      //           that.getShopownerCollectPage(that.data.qqtype[that.data.selectid])
      //         }else if(that.data.selectmember==2){
      //           that.getBricklayCollectPage(that.data.qqtype[that.data.selectid])
      //         }
              
      //       break;
          
      //       default:
      //         break;
      //     }
        
      // }else if (that.data.clickype==3) {
      //   switch (this.data.identity) {
      //     case '1':
      //       if (e.detail.selectmember==0) {
      //         this.getSalesmanCollectPage(this.data.qqtype[e.detail.selectid])
      //       }else if(e.detail.selectmember==1){
      //         this.getAgentCollectPage(this.data.qqtype[e.detail.selectid])
      //       }else if(e.detail.selectmember==2){
      //         this.getSuperviseCollectPage(this.data.qqtype[e.detail.selectid])
      //       }else if(e.detail.selectmember==3){
      //         console.log('sdfs')
      //         this.getShopownerCollectPage(this.data.qqtype[e.detail.selectid])
      //       }else if(e.detail.selectmember==4){
      //         this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
      //       }
      //     break;
      //     case '2':
      //       if (e.detail.selectmember==0) {
      //         this.getAgentCollectPage(this.data.qqtype[e.detail.selectid])
      //       }else if(e.detail.selectmember==1){
      //         this.getSuperviseCollectPage(this.data.qqtype[e.detail.selectid])
      //       }else if(e.detail.selectmember==2){
      //         this.getShopownerCollectPage(this.data.qqtype[e.detail.selectid])
      //       }else if(e.detail.selectmember==3){
      //         console.log('sdfs')
      //         this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
      //       }
      //     break;
      //     case '3':
      //       if (e.detail.selectmember==0) {
      //         this.getSuperviseCollectPage(this.data.qqtype[e.detail.selectid])
      //       }else if(e.detail.selectmember==1){
      //         this.getShopownerCollectPage(this.data.qqtype[e.detail.selectid])
      //       }else if(e.detail.selectmember==2){
      //         this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
      //       }
            
      //     break;
      //     case '4':
      //       this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
      //     break;
      //     case '5':
      //       this.getBricklayCollectPage(this.data.qqtype[e.detail.selectid])
            
      //     break;
      //     case '6':
            
      //     break;
      //     case '7':
            
      //     break;
      //     case '8':
            
      //     break;
      //     case '9':
            
      //     break;
        
      //     default:
      //       break;
      //   }
      // }else{
      //   switch (that.data.identity) {
      //     case '1':
      //       if (that.data.querytype==1) {
      //         this.getGroupBricklayPage(2)
              
      //       }else if (that.data.querytype==2) {
              
      //         this.getGroupBricklayPage(2)
              
      //       }else if (that.data.querytype==3) {
             
      //         this.getGroupShopownerPage(2)
      //       }else{
              
      //         this.getSalesmanCollectPage(that.data.querytype)
      //       }
      //     break;
      //     case '2':
      //       if (that.data.querytype==1) {
      //         this.getGroupBricklayPage(2)
              
      //       }else if (that.data.querytype==2) {
    
      //         this.getGroupBricklayPage(3)
              
      //       }else if (that.data.querytype==3) {
             
      //         this.getGroupShopownerPage(3)
              
      //       }else{
              
      //         this.getAgentCollectPage(that.data.querytype)
      //       }
    
            
      //     break;
      //     case '3':
      //       if (that.data.querytype==1) {
      //         this.getGroupBricklayPage(2)
              
      //       }else if (that.data.querytype==2) {
            
      //         this.getGroupBricklayPage(2)
              
      //       }else{
              
      //         this.getSuperviseCollectPage(that.data.querytype)
      //       }
      //     break;
      //     case '4':
    
      //       if(that.data.querytype==1){
              
      //         this.getVerifyBricklayPage()
      //       }else{
      //         this.getBricklayCollectPage(that.data.querytype)
      //       }
    
      //     break;
      //     case '5':
           
      //       this.getBricklayCollectPage(that.data.querytype)
            
      //     break;
      //     case '6':
            
      //     break;
      //     case '7':
            
      //     break;
      //     case '8':
            
      //     break;
      //     case '9':
            
      //     break;
        
      //     default:
      //       break;
      //   }
      // }




    }else{
     
    

    }

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})